﻿using EncryptaionManager;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WindowsApplicationUtility
{
    public partial class Encryption : Form
    {
        public Encryption()
        {
            InitializeComponent();
        }

        private void btnEncryt_Click(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(txtText.Text))
                txtEncryptionResult.Text = EncryptionManager.Encrypt(txtText.Text, new System.Security.Cryptography.SHA256CryptoServiceProvider());
            else
                txtEncryptionResult.Clear();
        }
    }
}
